home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / SSTRLF.CC < prev    next >
Text File  |  1993-04-04  |  455b  |  16 lines

  1. s_str_lf(int count, char *str)
  2. /* This will shift the characters in the string pointed to by *str left
  3.    count number of characters. Blanks will be added in the positions where
  4.    character are shifted out. The leng of the string will not be changed.
  5. */
  6. {
  7.     int len = strlen(str);
  8.     if(count >= len) return;
  9.     memmove(str,str+count,len-count);
  10.     for(;count;count--)
  11.         *(str + len - count) = ' ';
  12.     *(str + len - count) = ' ';
  13.  
  14. }
  15. 
  16.